Skip to content

Update clickhouse-cpp for proper Bool support#257

Closed
theory wants to merge 1 commit into
mainfrom
bool
Closed

Update clickhouse-cpp for proper Bool support#257
theory wants to merge 1 commit into
mainfrom
bool

Conversation

@theory
Copy link
Copy Markdown
Collaborator

@theory theory commented May 28, 2026

The new version adds a Bool column type and the -DCH_MAP_BOOL_TO_UINT8=OFF compile directive to prevent converting bools to uint8 values. This eliminates the need for the binary driver to cast to and from uint8 (INT2) to handle boolean values: we can just directly use the boolean type support.

@theory theory requested a review from slabko May 28, 2026 12:50
@theory theory self-assigned this May 28, 2026
@theory theory added data types Improve data type support drivers Improve binary and/or http driver support labels May 28, 2026
The new version adds a `Bool` column type and the
`-DCH_MAP_BOOL_TO_UINT8=OFF` compile directive to prevent converting
bools to `uint8` values. This eliminates the need for the binary driver
to cast to and from `uint8` (`INT2`) to handle boolean values: we can
just directly use the boolean type support.
@serprex
Copy link
Copy Markdown
Member

serprex commented May 28, 2026

#254

@serprex serprex closed this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data types Improve data type support drivers Improve binary and/or http driver support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants